program to interchange first and last element in given list

visit shbcf.ru